import os
from mako.template import Template
from mako.lookup import TemplateLookup

path = [os.path.join(os.path.dirname(__file__), 'template/')]
templates = TemplateLookup(directories=path, input_encoding='utf-8', output_encoding='utf-8', encoding_errors='ignore')